Graphical conversion between test program languages

ABSTRACT

A parser may be graphically modified without needing to directly alter the parser software and may be graphically modified to adjust for extensibility of the source test program language. The parser may be graphically modify to adjust for extensibility of the destination test program language and to translate a new text based test program language not inherently built into the parser.

BACKGROUND

In current Test Program Language parsers, the vocabulary and syntax ofthe source and destination Test Program Languages are either hard codeddirectly into the parser or passed to the parser through the use ofexternal configuration files. For example, the Abbreviated Test Languagefor All Systems (ATLAS) program language has a very specific lexical andsyntactical content and is designed to be extensible. New features(i.e., nouns, modifiers) are added for each version of the ATLASLanguage. Creating comprehensive parsers for a specific version of theATLAS Language is both time intensive and cumbersome.

Modifications of the current Test Language parsers are not end usergraphically extensible. They require a user to either create newconfiguration files or to modify the source code of the test programlanguage parser to account for deviations in a source or destinationtest program languages due to extensibility of those test programlanguages. This also applies if the end user desires to translate adifferent source or destination test program language.

The problem with prior test program parser implementations is theirfundamental inability to deal with new or extensible test programlanguages that were not part of the original design and scope of theparser program. In addition, any modifications required alteration ofthe original parser software code and are not end user graphicallyextensible

In short, there exists a need in the art for a parser program that canbe graphically extensible.

SUMMARY

According to an embodiment, a computer readable medium storing computerreadable program code for causing a computer to perform the steps ofpresenting a graphical user interface; receiving input from a user;reconfiguring a text based parser for a text based test language basedon the user input; and parsing the source test program file using thereconfigured text based parser is provided. Related methods are ofperforming the process are also included.

This summary is provided merely to introduce certain concepts and not toidentify any key or essential features of the claimed subject matter.Further features and advantages of embodiments of the invention, as wellas the structure and operation of various embodiments of the invention,are described in detail below with reference to the accompanyingdrawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing and other features and advantages of embodiments of theinvention will be apparent from the following, more particulardescription of embodiments of the invention, as illustrated in theaccompanying drawings wherein like reference numbers generally indicateidentical, functionally similar, and/or structurally similar elements.Unless otherwise indicated, the accompanying drawing figures are not toscale.

FIG. 1 illustrates a user interface configured for input and output fileselection according to an embodiment of the present invention;

FIG. 2 illustrates the user interface configured for initializationexpression modification, decision tree configuration, and data parametercustomization according to an embodiment of the present invention;

FIG. 3 illustrates the user interface for converter action modificationsaccording to an embodiment of the present invention;

FIG. 4 illustrates the user interface for state variable setup accordingto an embodiment of the present invention; and

FIG. 5 depicts an exemplary architecture in accordance with one or moreembodiments.

DETAILED DESCRIPTION

Various embodiments of the invention are discussed herein. Whilespecific embodiments are discussed, specific terminology is employed forthe sake of clarity. However, the invention is not intended to belimited to the specific terminology so selected and it should beunderstood that this is done for illustration purposes only. A personskilled in the relevant art will recognize that other components andconfigurations can be used without parting from the spirit and scope ofthe invention. Each specific element includes all technical equivalentsthat operate in a similar manner to accomplish a similar purpose.Embodiments of the invention may include the described process as wellas software and hardware systems to carry out the described processes.

The implications of producing a graphically reconfigurable test programlanguage parser are significant. The end user may graphically modify theparser without needing to directly alter the parser software and maygraphically modify the parser to adjust for extensibility of the sourcetest program language.

The parser may be graphically modify to adjust for extensibility of thedestination test program language and to translate a new text based testprogram language not inherently built into the parser.

Graphical parsing software according to various embodiments of theinvention may parse the text of the source test program language into adestination test program language using the following features:

-   -   1. Graphical manipulation of .NET regular expressions and string        manipulations to control data extraction from the target test        program language.    -   2. Closing expression capability to allow for control and        manipulation of recursively embedded elemental tagged files such        as HTML and XML.    -   3. User configurable data fields for storing and extracting        parsed data.    -   4. User configurable state variable fields for storing data for        transfer between different parsing operations.    -   5. Graphical manipulation of String Format functions and        configurable data fields to convert data to a desirable format.    -   6. User configurable decision trees to allow customizable        conversion actions based on parsed data and user defined        actions.    -   7. Expandable and customizable conversion actions for        translating one test program language to the next.    -   8. Selectable XML configuration files that are modified through        the graphical interface.    -   9. Ability to load multiple input files into one parsing        operation for test program languages that span multiple files.    -   10. Statistical converter actions for extracting user defined        statics from parsing operations.    -   11. User configurable parsing log for tracking parsing        operations.

Referring now to FIG. 1, an exemplary user interface configured forconfiguration file selection, input file selection, and output fileselection is described. The user interface 100 includes a field 102 forselecting the conversion configuration file. The configuration file maybe an XML file that contains all the user selections and configurationsperformed within the user interface. The system may provide an option toselect an existing configuration file for editing or to create aconfiguration file from scratch.

The files displayed in field 104 appear after the selection from a filedialog box. This is done by selecting the Add button in field 104. Thetypes of files available through the dialog box are filtered based onthe selected configuration file. Any number of files may be selectedthrough the dialog box. The files may even be located in differentlocations. Files may be deselected by highlighting them and pressing thedelete button. Once the total number of desired files are entered, theparser will acted upon all files listed in field 104.

Any number of different source files may be selected and then loaded fortest program languages than span multiple source files. The converterperforms conversions on the selected files in the order listed in field104. A destination file path where the converted language is to bestored may be entered in field 106.

FIG. 2 displays the user interface configured for initializationexpression modification, decision tree configuration, and data parametercustomization.

The parser may create a base statement by extracting data from thesource files. The extraction may be based on a regular expression, aclosing expression or a combination of both. The regular expression maybe entered into field 108. The parser may use this regular expression toretrieve information from the source files to be parsed. Conversion fromATML is shown in the example of FIG. 2. ‘Detailed TestInformation’ isentered as the regular expression into field 108. The parser retrievesanything that deals with detailed test information from the identifiedsource files. Depending on the conversion being performed, the basestatement may include verbs, tags, function names and the like.

Additionally, a closing statement may be chosen by selecting groupingmode via check box 110 and entering the closing expression in field 112.The closing expression may act as a bookend to extract data that may belocated inside the starting and ending lines of the source file(s). Thismay be useful for tag based languages such as XML.

When parsing begins, the translator acts upon the top node of thedecision tree (5). The user can extract parameters from the basestatement using the regular expression or drop down menus containingstring manipulations. The parser will act sequentially upon theparameter methods until all have been performed. The resulting data isplaced in the parameter field for use by the converter actions. Methodsmay be added and/or removed. The option to create as many parameters asnecessary to successfully complete the conversion action may also beprovided.

The functions provided at 122 allow the customization of parameters. Aname for the parameter may be provided by a user in field 124. Adescription of the parameter may be provided in field 126. Thedescription may aid the user to determine what the parameter is. Thenumber of methods in (6) is variable. The ability to create/delete asmany of these methods as desired may be provided via the dropdown menus128-132. Each method parsers the data received from the node in theorder the methods are selected. Though this action, the specific dataassociated with the parameter name may be obtained.

ID 134 and Detailed Information 136 are additional parameters. The IDfunction 134 is the id number of the code located by the variableexpressions. The detailed information function 136 can use the regularexpression to located the desired detailed information.

Parameters may be created or deleted for use in the current decisionnode through the add and delete buttons in (6) Data passed from thecurrent Decision Node to the parameters may be parsed independently foreach of the parameters. This enables any and all data passed from theDecision Node to be located in the desired parameters.

The decision tree may be customized via the graphical interface. If thefile to be converted includes statements that are not accounted for inthe parser, the parser may be modified graphically to account for thesenew statements. For example, a user may right click on a branch of thedecision tree to add a new decision point. The actions to be taken atthe decision point may be specified by defining new parameters viawindow 122.

After the parameters are created, the parser then sequentially acts uponthe base statement using the converter actions (7) and any createdparameters (6). Conversion actions may either be a series of actions ora call to a lower node. The ability to add, reorder, modify, an/orremove the converter actions may be provided. Some examples of converteractions include parser—log—add message 140; teststand—add sequence 142;and parser-log-add statistic 144 as shown in FIG. 3. The system mayautomatically create the converter action. For example for theteststand—add sequence converter action, the name 146, comment 148, IDattribute 150, and description attribute 152 are added to the text file,XML file or desired target language. The drop down menus are populatedautomatically by the system based on the defined parameters.

Additional user-selectable formatting fields allow customization of howone or more parameters are used in the converter action field.Additional formatting lines may be added to combine parameters or to useliterals to create the desired data passed into the converter actionfield. For example, the converter action for the ID attribute parameteris selected in drop down menu. The value for the ID attribute willpopulate the {0} in the sequence.

Lines of target text may be created by a user and stored in thedestination file using the parameters and/or the converter actions. Theinput text, parameters and state variables may be combined usingformatting converter actions to create the desired line of text. Thereis also an additional converter action that allows the operator tore-enter the top decision node and perform a parsing operation on eitherthe input texted passed from the calling decision node or a user defineset of text.

The operator may create additional decision nodes that then in turn calllower decision nodes in a tree structure. Once the parser exhausts allactions to the end of a branch, it starts again at the top node untilall text contained in the base statement has been parsed.

State variables may be used to store data that is not dependent on thestatus of the parsing process. Parameters by contrast are dependent onthe particular node that is being processed. For example, in FIG. 4, the“Call Action ID” node is highlighted. The information displayed byparameter tab and the conditional tab will vary based on the nodeselected, whereas the information displayed in the state variable tab isindependent of the node. The state variable may be available to allnodes, any location.

FIG. 4 shows some examples of different state variables such as setupaction, current code file, message-assembly path, message-root class,message existing object member name, and message-existing objectparameter list. The different sate variable may be created and modifiedusing the interface shown in FIG. 4.

FIG. 5 depicts an exemplary architecture for implementing a computingdevice 600 in accordance with one or more embodiments, which may be usedto implement any of the processes describe above, or any other computersystem or computing device component thereof. It will be appreciatedthat other devices that can be used with the computing device 600, suchas a client or a server, may be similarly configured. As illustrated inFIG. 6, computing device 600 may include a bus 610, a processor 620, amemory 630, a read only memory (ROM) 640, a storage device 650, an inputdevice 660, an output device 670, and a communication interface 680.

Bus 610 may include one or more interconnects that permit communicationamong the components of computing device 600. Processor 620 may includeany type of processor, microprocessor, or processing logic that mayinterpret and execute instructions (e.g., a field programmable gatearray (FPGA)). Processor 620 may include a single device (e.g., a singlecore) and/or a group of devices (e.g., multi-core). Memory 630 mayinclude a random access memory (RAM) or another type of dynamic storagedevice that may store information and instructions for execution byprocessor 620. Memory 630 may also be used to store temporary variablesor other intermediate information during execution of instructions byprocessor 620.

ROM 640 may include a ROM device and/or another type of static storagedevice that may store static information and instructions for processor620. Storage device 650 may include a magnetic disk and/or optical diskand its corresponding drive for storing information and/or instructions.Storage device 650 may include a single storage device or multiplestorage devices, such as multiple storage devices operating in parallel.Moreover, storage device 650 may reside locally on the computing device600 and/or may be remote with respect to a server and connected theretovia network and/or another type of connection, such as a dedicated linkor channel.

Input device 660 may include any mechanism or combination of mechanismsthat permit an operator to input information to computing device 600,such as a keyboard, a mouse, a touch sensitive display device, amicrophone, a pen-based pointing device, and/or a biometric inputdevice, such as a voice recognition device and/or a finger printscanning device. Output device 670 may include any mechanism orcombination of mechanisms that outputs information to the operator,including a display, a printer, a speaker, etc.

Communication interface 680 may include any transceiver-like mechanismthat enables computing device 600 to communicate with other devicesand/or systems, such as a client, a server, a license manager, a vendor,etc. For example, communication interface 680 may include one or moreinterfaces, such as a first interface coupled to a network and/or asecond interface coupled to a license manager. Alternatively,communication interface 680 may include other mechanisms (e.g., awireless interface) for communicating via a network, such as a wirelessnetwork. In one implementation, communication interface 680 may includelogic to send code to a destination device, such as a target device thatcan include general purpose hardware (e.g., a personal computer formfactor), dedicated hardware (e.g., a digital signal processing (DSP)device adapted to execute a compiled version of a model or a part of amodel), etc.

Computing device 600 may perform certain functions in response toprocessor 620 executing software instructions contained in acomputer-readable medium, such as memory 630. In alternativeembodiments, hardwired circuitry may be used in place of or incombination with software instructions to implement features consistentwith principles of the invention. Thus, implementations consistent withprinciples of the invention are not limited to any specific combinationof hardware circuitry and software.

Exemplary embodiments may be embodied in many different ways as asoftware component. For example, it may be a stand-alone softwarepackage, a combination of software packages, or it may be a softwarepackage incorporated as a “tool” in a larger software product. It may bedownloadable from a network, for example, a website, as a stand-aloneproduct or as an add-in package for installation in an existing softwareapplication. It may also be available as a client-server softwareapplication, or as a web-enabled software application. It may also beembodied as a software package installed on a hardware device.

It will be understood that the above description of the presentinvention is susceptible to various modifications, changes andadaptations, and that the same are intended to be comprehended withinthe meaning and range of equivalents of the appended claims.

What is claimed is:
 1. A computer readable medium storing computerreadable program code for causing a computer to perform the steps of:presenting a graphical user interface; receiving input from a user;reconfiguring a text based parser for a text based test language basedon the user input; and parsing the source test program file using thereconfigured text based parser.
 2. The computer readable medium of claim1 storing computer readable program code for causing a computer toperform the steps further comprising: receiving input from the userselecting a plurality of source test program files; and parsing theplurality of source test files.
 3. The computer readable medium of claim1 storing computer readable program code for causing a computer toperform the steps further comprising: receiving graphical manipulationof a regular expression or a string manipulation; and controlling dataextraction from the target test program language based on the graphicalmanipulations.
 4. The computer readable medium of claim 1 storingcomputer readable program code for causing a computer to perform thestep further comprising: receiving graphical manipulations of a closingexpress ion and controlling control data extraction from the target testprogram language based on the graphical manipulations.
 5. The computerreadable medium of claim 1 storing computer readable program code forcausing a computer to perform the steps further comprising: presentingto the user configurable data fields for storing and extracting parseddata
 6. The computer readable medium of claim 1 storing computerreadable program code for causing a computer to perform the stepsfurther comprising: presenting a decision trees defining the order ofparsing; receiving user input modifying the decision tree via thegraphical user interface; and performing customizable conversion actionsbased on the user input.